#ifndef _FPDF_EMB_ANOTHER_H_
#define _FPDF_EMB_ANOTHER_H_

#ifdef __cplusplus
extern "C" {
#endif

/********************************************************************************************
****
****		Annotation Information
****
********************************************************************************************/

/** @brief link annotation. */
#define FPDFEMB_ANNOT_LINK					0x0020

struct FPDFEMB_ANNOT_LINKINFO
{
	unsigned int				size;			/**< size of the structure. */
	FPDFEMB_WCHAR				author[64];		/**< author of the annotation. */
	unsigned int				color;			/**< color of the annotation. */
	int							opacity;		/**< opacity of the annotation. */
	struct FPDFEMB_RECT			rect;			/**< rectangle of the annotation. */
	struct FPDFEMB_ANNOT_QUAD	quad;			/**< quadrilaterals of highlight annotation. */
	int							line_width;		/**< line width of pencil annotation. */
	int							dest_type;		/**< destination type, see FPDFEMB_DEST_xxx in fpdfemb.h. */
	void*						data;			/**< destination data, depend on dest_type. */
};

/********************************************************************************************
****
****		Other
****
********************************************************************************************/

FPDFEMB_RESULT FPDFEMB_SetDocumentModDate(FPDFEMB_DOCUMENT document, const char* moddate);

/**
 * Function: FPDFEMB_CreatePage
 *			Create a new page
 *
 * @param[in] document		Document handle
 * @param[in] index			Page index, starting from zero
 * @param[in] width			page width, in page coordinate
 * @param[in] height		page height, in page coordinate
 * @param[out] pPage		Receiving the created page handler
 * @return Error code, or FPDFERR_SUCCESS for success.
 */
FPDFEMB_RESULT FPDFEMB_CreatePage(FPDFEMB_DOCUMENT document, int index,
								  float width, float height, FPDFEMB_PAGE* pPage);

/**
 * Function: FPDFEMB_DeletePage
 *			Delete a page
 *
 * @param[in] document		Document handle
 * @param[in] index			Page index, starting from zero
 * @return Error code, or FPDFERR_SUCCESS for success.
 */
FPDFEMB_RESULT FPDFEMB_DeletePage(FPDFEMB_DOCUMENT document, int index);

#ifdef __cplusplus
}
#endif

#endif	// #ifndef _FPDF_EMB_ANOTHER_H_